﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLTuyenXe.DAL;
using System.Data;
using System.Collections;

namespace QLTuyenXe.DAO
{
    class HOPDONG
    {
        MyConnectUnit myConnU = new MyConnectUnit();
        string maHD;
        string maCT;      
        string daidienA;
        string chucvuA;
        string diachiA;
        string dienthoaiA;
        string donviB;
        string daidienB;
        string chucvuB;
        string diachiB;
        string dienthoaiB;
        string soluong;
        string tenXe;

        public string TenXe
        {
            get { return tenXe; }
            set { tenXe = value; }
        }
        string loai;
        string thoigianthue;
        string thoigiantra;
        string giathue;
        string giabangchu;
        string sotiendatcoc;
        string ngaylamhopdong;

        string maKH;

        public string MaKH
        {
            get { return maKH; }
            set { maKH = value; }
        }

        public string MaHD
        {
            get { return maHD; }
            set { maHD = value; }
        }
        public string MaCT
        {
            get { return maCT; }
            set { maCT = value; }
        }

       public string Ngaylamhopdong
        {
            get { return ngaylamhopdong; }
            set { ngaylamhopdong = value; }
        }
        
             

        public string DaidienA
        {
            get { return daidienA; }
            set { daidienA = value; }
        }
       
       public string ChucvuA
        {
            get { return chucvuA; }
            set { chucvuA = value; }
        }
        
        public string DiachiA
        {
            get { return diachiA; }
            set { diachiA = value; }
        }
        
        public string DienthoaiA
        {
            get { return dienthoaiA; }
            set { dienthoaiA = value; }
        }
        
        public string DonviB
        {
            get { return donviB; }
            set { donviB = value; }
        }
        
        public string DaidienB
        {
            get { return daidienB; }
            set { daidienB = value; }
        }
        
       public string ChucvuB
        {
            get { return chucvuB; }
            set { chucvuB = value; }
        }
        
      public string DiachiB
        {
           get { return diachiB; }
           set { diachiB = value; }
        }
        
       public string DienthoaiB
       {
           get { return dienthoaiB; }
           set { dienthoaiB = value; }
       }
        
        public string Soluong
        {
            get { return soluong; }
            set { soluong = value; }
        }
        
        public string Loai
        {
            get { return loai; }
            set { loai = value; }
        }
        
        public string Thoigianthue
       {
           get { return thoigianthue; }
            set { thoigianthue = value; }
        }
        
        public string Thoigiantra
        {
            get { return thoigiantra; }
            set { thoigiantra = value; }
        }
        
        public string Giathue
        {
            get { return giathue; }
            set { giathue = value; }
        }
        
        public string Giabangchu
        {
            get { return giabangchu; }
            set { giabangchu = value; }
        }
        
        public string Sotiendatcoc
        {
            get { return sotiendatcoc; }
            set { sotiendatcoc = value; }
        }
        
        
        
        CHUCVU chucVu = new CHUCVU();
        /*private void GetChucVu()
        {
            DataTable tb = myConnU.Select("HOP_DONG", "*", "chuvu_id=" + id);
            foreach (DataRow r in tb.Rows)
            {
                chucVu.Id = chucvu_id;
                chucVu.Chucvu = r["chuvu"].ToString();
            }
        }*/
        //GIATHUE thue = new GIATHUE();
       /* private void GetGiaThue()
        {
            DataTable tb = myConnU.Select("HOP_DONG", "*", "giathuexe_id=" + id);
            foreach (DataRow r in tb.Rows)
            {
                thue.Id = giathuexe_id;
                thue.Giathue = int.Parse(r["giathue"].ToString());
                thue.Maxe = r["maxe"].ToString();

            }
        }*/
        
    }
}
